home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / C / ARCADE.ZIP / MS.EXE / lzh / JOYSTICK.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  837 b   |  34 lines

  1. /*-----------------------------joystick.h-----------------------------------*/
  2. /*
  3. (C) Copyright 1992 David Conger
  4. */
  5.  
  6. #ifndef __JOYSTICK_H__
  7.  
  8.  
  9.  
  10. /*-------------------------------constants----------------------------------*/
  11.  
  12. #define GAME_PORT_NOT_SUPPORTED    -1
  13. #define JOYSTICK_NOT_FOUND        -2
  14.  
  15. #define BUTTON_1_MASK            0x01
  16. #define BUTTON_2_MASK            0x02
  17.  
  18. /*-----------------------------end constants--------------------------------*/
  19.  
  20.  
  21.  
  22. /*------------------------------prototypes----------------------------------*/
  23.  
  24. int init_joystick(void);
  25. unsigned poll_buttons(void);
  26. int poll_joystick(int *x_value,int *y_value);
  27.  
  28. /*----------------------------end prototypes--------------------------------*/
  29.  
  30. #define __JOYSTICK_H__
  31. #endif
  32.  
  33. /*---------------------------end joystick.h---------------------------------*/
  34.